package com.workerhelping.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.workerhelping.dao.IncomeDao;
import com.workerhelping.po.Income;
import com.workerhelping.service.IncomeService;
import org.springframework.stereotype.Service;

@Service
public class IncomeServiceImpl extends ServiceImpl<IncomeDao, Income> implements IncomeService {
    @Override
    public int insertIncome(Income income) {
        int id = baseMapper.insert(income);
        return income.getId();
    }
}
